<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%-- 设置meta
////////////////////////////////////////////////////////////////////////////////////////////// --%>
<%@ include file="/WEB-INF/template/include/meta.jsp"%>
	<title>三方28数据管理</title>
	
<%-- 导入样式
////////////////////////////////////////////////////////////////////////////////////////////// --%>
<c:set var="linkForm" value="form" />
<%@ include file="/WEB-INF/template/include/link.jsp"%>
	<link rel="stylesheet" href="${res }/default/css/content.css" /> 
	
<%-- 导入脚本
////////////////////////////////////////////////////////////////////////////////////////////// --%>
<c:set var="scriptForm" value="form" />
<%@ include file="/WEB-INF/template/include/script.jsp"%>

<%-- 页眉
////////////////////////////////////////////////////////////////////////////////////////////// --%>
<c:set var="mode" value="original" />
<%@ include file="/WEB-INF/template/include/header.jsp"%>
	<div style="width:600px;margin:auto;padding:0px;">
		<p class="text-center xl-copyright">Whisper Studio Make Life Better.</p>
			<div class="well" >
				<table class="table table-striped table-hover">
					<thead>
						<tr>
							<th >日期</th>
							<th >投入</th>
							<th >获得</th>
							<th >盈利</th>
						</tr>
					</thead>
					<tbody>
						<c:forEach items="${dateStatisticies }" var="item" varStatus="status">
						<tr style="border-top:white;">
							<td style='border-top:white;'><fmt:formatDate value="${item.date }" pattern="yyyy-MM-dd"/></td>
							<td style='border-top:white;'>${item.putin }</td>
							<td style='border-top:white;'>${item.obtain }</td>
							<td style='border-top:white;color:${item.earn>=0?"red":"green"};'>${item.earn }</td>
						</tr>
						</c:forEach>
						<tr>
							<td style='border-top:white;background:${statistics.earn>=0?"#F5EDD3":"#E8FCE8"};'>总计</td>
							<td style='border-top:white;background:${statistics.earn>=0?"#F5EDD3":"#E8FCE8"};'>${statistics.putin }</td>
							<td style='border-top:white;background:${statistics.earn>=0?"#F5EDD3":"#E8FCE8"};'>${statistics.obtain }</td>
							<td style='border-top:white;background:${statistics.earn>=0?"#F5EDD3":"#E8FCE8"};color:${statistics.earn>=0?"red":"green"};'>${statistics.earn }</td>
						</tr>
					</tbody>
				</table>
			</div>
		<p class="text-center xl-copyright">2014 &copy; Whisper Development Team.</p>
	</div>
<c:set var="mode" value="original" />
<%@ include file="/WEB-INF/template/include/footer.jsp"%>
